import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/home'
import Search from '@/components/home/pages/search'
import Address from '@/components/home/pages/address'
import Detail from '@/components/home/pages/detail'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/address',
      name: 'Address',
      component: Address
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail
    }

  ]
})
